<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="/static/css/public.css"/>
<link rel="stylesheet" href="/static/css/page.css"/>
<script src="/quickJs/scripts/jquery/jquery-3.1.1.min.js"></script>
<script src="/quickJs/scripts/jquery/plug-ins/form/jquery-form.js"></script>
<script src="/quickJs/scripts/common/StringUtils.js"></script>
<script src="/quickJs/scripts/jquery/plug-ins/layer/layer_mobile/layer.js" class='layer'></script>
<script src="/quickJs/scripts/layui/layui.js"></script>
<script src="/quickJs/scripts/jquery/plug-ins/laydate/laydate.js"></script>
<script src="/quickJs/scripts/jquery/plug-ins/cookie/jquery.cookie.js"></script>
<script src="/quickJs/scripts/jquery/plug-ins/store/store.min.js"></script>
<script src="/quickJs/scripts/common/quick-base.js"></script>
<script src="/quickJs/scripts/common/quick-parser.js"></script>
<script src="/quickJs/scripts/common/quick-version.js"></script>
<script src="/quickJs/scripts/common/quick-view.js"></script>
<script src="/quickJs/scripts/common/quick-field.js"></script>
<script src="/quickJs/scripts/common/quick-validate.js"></script>
<script src="/quickJs/scripts/common/StoreCache.js"></script>
<script src="/quickJs/scripts/common/dataAndViewUtils.js"></script>
<script src="/static/js/jsBridge/quick-utils.js"></script>
<script src="/static/js/jsBridge/JSBridge.js"></script>
<script src="/quickJs/scripts/common/Date.js"></script>
<script src="/static/js/quick-alert.js"></script>
<script src="/static/js/quick-remote-boot.js"></script>
<script src="/static/js/jkcs-title.js"></script>
<script src="/static/js/pageSwitch.js"></script>
<script src="/static/js/serviceUrl.js"></script>
<script src="/static/js/gzd/pageUrl.js"></script>
<script src="/static/js/template-web.js"></script>
<%- include('./mobileUtils') %>
<script type="text/javascript">


    var u = navigator.userAgent;
    var ServiceType;
    if (u.indexOf('android_appName') != -1 || u.indexOf('iOS_appName') != -1) {

        ServiceType = "mobile";

    } else {
        ServiceType = "";
    }
    $(function () {
        $("a.back").click(function () {
            history.back();
        });
        if(!$.QuickVersion["isWeixin"] && ServiceType != "mobile"){
            $(".header-box").show();
            $(".footer-nav-box").show();
            $(".header-box-index").show();
        }
        if($.QuickVersion["isWeixin"]){
            $(".footer-nav-box").show();
        }
    });
</script>
<style>
    .header-box {
        display: none;
    }

    .footer-nav-box {
        display: none;
    }

    .header-box-index {
        display: none;
    }
</style>
<script>
    /*获取用户信息*/
    $.JkcsUserInfo = {
        /*服务地址*/
        uri_servive_getUserInfo: '/api/gzd/getUserInfo'
        /**获取当前用户信息默认配置*/
        ,def_cfg_getUserInfoGzd: {
            callback: null
            /*是否需要获取最新的用户信息 默认从缓存获取*/
            ,refresh: false
        }
        /**获取公众端用户信息*/
        ,getUserInfoGzd: function(params){
            var cfg = $.extend({}, $.JkcsUserInfo.def_cfg_getUserInfoGzd, params);
            var refresh = cfg["refresh"];
             var callback = cfg['callback'];
            if(refresh){
                $.QuickRemote.AjaxJson({
                    funcName: $.JkcsUserInfo.uri_servive_getUserInfo
                    ,callback: function(result){
                        StoreCache.setCache("jkcsUserInfo", result);
                        if($.isFunction(callback)){
                            callback(result);
                        }
                    }
                });
            }else{
                callback(StoreCache.getCache("jkcsUserInfo"));
            }
        }
    }

    /*值域代码工具类*/
    $.JkcsZydmUtils = {
        /*值域 引用zydm.json配置*/
        zydm: JSON.parse('<%- JSON.stringify(zydm) %>')
        ,def_parms: {
            tableName: ""
            ,textField: "text"
            ,valueField: "value"
            ,keyValue: true
        }
        /*获取配置的值域数组*/
        ,getAry: function(params){
            var params1 = $.extend({}, $.JkcsZydmUtils.def_parms, params);
            var tableName = params1['tableName'];
            var textField = params1['textField'];
            var valueField = params1['valueField'];
            var ary1 = [];
            var ary = $.JkcsZydmUtils.zydm[tableName];
            if($.isArray(ary)){
                $.each(ary, function(){
                    var item = {};
                    item[textField] = this['XMMC'];
                    item[valueField] = this['XMDM'];
                    ary1.push(item);
                })
            }
            return ary1;
        }
        /*获取值域字典*/
        ,getDict: function(params){
            var params1 = $.extend({}, $.JkcsZydmUtils.def_parms, params);
            var tableName = params1['tableName'];
            var keyValue = params1['keyValue'];
            var dict = {};
            var ary = $.JkcsZydmUtils.zydm[tableName];
            if($.isArray(ary)){
                $.each(ary, function(){
                    if(keyValue){
                        dict[this['XMMC']] = this['XMDM'];
                    }else{
                        dict[this['XMDM']] = this['XMMC'];
                    }
                })
            }
            return dict;
        }
    }
StoreCache.setCache("applicationType", "gzd");
</script>